﻿<%@ Page Language="C#" MasterPageFile="~/IPMSMasterPage.master" AutoEventWireup="true"
    CodeFile="OptProductProjectsAdd.aspx.cs" Inherits="OptProductProjectsAdd" Title="Project Monitoring System"
    Culture="auto:en-US" UICulture="auto" meta:resourcekey="PageResource1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server"
    Visible="false">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder2" runat="Server">
<div style="margin-left:10px;margin-right:10px;">
<table width="100%">
    <tr>
        <td align="center" width="100%">
            <asp:Label ID="lblError" runat="server" ForeColor="Red" Width="100%" CssClass="error" meta:resourcekey="lblErrorResource1"></asp:Label>
        </td>
    </tr>
</table>
<table width="900px">
    <tr>
        <td width="100" align="left">
            <asp:Label ID="lblModel" runat="server" Text="Model No." meta:resourcekey="lblModelResource1"></asp:Label>
        </td>
        <td width="200" align="left">
            <asp:TextBox ID="txtModel" runat="server"  CssClass="lookup" Width="200px" ReadOnly="True"></asp:TextBox>
        </td>
        <td width="100" align="left">
            <asp:Label ID="lblModelName" runat="server" Text="Model Name" meta:resourcekey="lblModelNameResource1"></asp:Label>
        </td>
        <td width="200" align="left">
            <asp:TextBox ID="txtModelName" runat="server"  CssClass="lookup" Width="200px" ReadOnly="True"></asp:TextBox>
        </td>
        <td>
            <asp:Button ID="btnAdd" runat="server" CausesValidation="False" Width="100px" CssClass="submit" Text="Add" meta:resourcekey="btnAddResource1" onclick="btnAdd_Click" />
        </td>
    </tr>
    <tr>
        <td width="100" align="left">
            <asp:Label ID="lblProjectCode" runat="server" Text="Project Code" meta:resourcekey="lblProjectCodeResource1"></asp:Label>
        </td>
        <td width="200" align="left">
            <asp:TextBox ID="txtProjectCode" runat="server" Width="200px" ></asp:TextBox>
        </td>
        <td width="100" align="left"></td>
        <td width="200" align="left"></td>
        <td>
            <asp:Button ID="btnSearch" runat="server" CausesValidation="False" Width="100px" CssClass="submit" Text="Search" meta:resourcekey="btnSearchResource1" onclick="btnSearch_Click" />&nbsp;
            <asp:Button ID="btnBack" runat="server" CausesValidation="False" Width="100px" CssClass="submit" Text="Back" meta:resourcekey="btnBackResource1" onclick="btnBack_Click" />
        </td>
    </tr>
</table>
<asp:Panel ID="panelList" runat="server" meta:resourcekey="ActivePanelResource1">
    <fieldset>
        <legend>
            <asp:Label ID="lblProductProject" runat="server" Text="Product Projects" meta:resourcekey="lblProductProjectResource1"></asp:Label>
        </legend>
        <table>
            <tr>
                <td>
                    <asp:GridView CssClass="Grid" ID="gvProductProject" runat="server" 
                        BackColor="#DEBA84" BorderColor="#660000"
                        BorderStyle="Solid" BorderWidth="1px" CellPadding="0" CellSpacing="0" Width="100%"
                        Height="1%" AllowPaging="True" PageSize="10" AllowSorting="True" 
                        EmptyDataText="No Projects Record Aavailable!"
                        AutoGenerateColumns="False" meta:resourcekey="gvActiveResource1" 
                        DataKeyNames="ProjectCode" 
                        onpageindexchanging="gvProductProject_PageIndexChanging">
                        <Columns>
                            <asp:TemplateField HeaderText="" HeaderStyle-Width="50"> 
                                <ItemTemplate> 
                                    <asp:CheckBox id="cbxId" runat="Server" /> 
                                </ItemTemplate> 
                            </asp:TemplateField> 
                            <asp:BoundField DataField="ProjectCode" HeaderText="Project Code" HeaderStyle-Width="150" ItemStyle-HorizontalAlign="left" ItemStyle-Wrap="false" meta:resourcekey="BoundFieldResource1"/>
                            <asp:BoundField DataField="Country" HeaderText="Country" HeaderStyle-Width="200"  ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource2"/>
                            <asp:BoundField DataField="Title" HeaderText="Title" HeaderStyle-Width="200" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource3"/>
                            <asp:BoundField DataField="Status" HeaderText="Status" HeaderStyle-Width="100" ItemStyle-HorizontalAlign="left" meta:resourcekey="BoundFieldResource4"/>
                       </Columns>
                        <HeaderStyle CssClass="GridHeaderStyle"/>
                        <RowStyle CssClass="GridRowStyle" />
                        <AlternatingRowStyle CssClass="GridAltRowStyle" />
                        <SelectedRowStyle CssClass="GridSelectedRowStyle" />
                        <PagerStyle CssClass="GridPagerStyle" ForeColor="White" />
                        <FooterStyle CssClass="GridFooterStyle" />
                    </asp:GridView>
                </td>
            </tr>
        </table>
    </fieldset>
</asp:Panel>

</div>
</asp:Content>